import { WeaTools } from 'ecCom';

const { callApi } = WeaTools;

const monitorList = '/api/email/monitor/monitorList';
const monitorCondition = '/api/email/monitor/monitorCondition';

const deleteMailFromMonitor = '/api/email/monitor/deleteMailFromMonitor';

const monitorLogList = '/api/email/monitor/monitorLogList';
const monitorLogCondition = '/api/email/monitor/monitorLogCondition';

export default {
	monitorList: params => callApi(monitorList, 'GET', params),
	monitorCondition: params => callApi(monitorCondition, 'GET', params),

	deleteMailFromMonitor: params => callApi(deleteMailFromMonitor, 'POST', params),

	monitorLogList: params => callApi(monitorLogList, 'GET', params),
	monitorLogCondition: params => callApi(monitorLogCondition, 'GET', params),
};
